package com.is.add.util.DimensionUtil;

import com.is.add.model.OrderBase;

/**
 * 订单状态维度
 * @author jackie
 */
public class OrderStatusDimension implements Dimension<OrderBase> {
    /**
     * 通过基础数据分析出维度对应key值
     *
     * @param baseBean 基础Bean
     * @return 维度key
     */
    @Override
    public String compare(OrderBase baseBean) {
        int status=baseBean.getStatus();
        String statusName = baseBean.getStatusName();
        return status+"-"+statusName;
    }

    @Override
    public String getTitle() {
        return "订单状态";
    }
}
